package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_accident")
public class TbAccident {

    @TableId(value = "instrument_id",type = IdType.INPUT)
    private String instrumentId;

    private String party;

    @TableField(value = "accident_cause")
    private String accidentCause;

    @TableField(value = "accident_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date accidentTime;

    private String phone;

    private String cid;

    public String getInstrumentId() {
        return instrumentId;
    }

    public void setInstrumentId(String instrumentId) {
        this.instrumentId = instrumentId;
    }

    public String getParty() {
        return party;
    }

    public void setParty(String party) {
        this.party = party;
    }

    public String getAccidentCause() {
        return accidentCause;
    }

    public void setAccidentCause(String accidentCause) {
        this.accidentCause = accidentCause;
    }

    public Date getAccidentTime() {
        return accidentTime;
    }

    public void setAccidentTime(Date accidentTime) {
        this.accidentTime = accidentTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public TbAccident(String instrumentId, String party, String accidentCause, Date accidentTime, String phone, String cid) {
        this.instrumentId = instrumentId;
        this.party = party;
        this.accidentCause = accidentCause;
        this.accidentTime = accidentTime;
        this.phone = phone;
        this.cid = cid;
    }

    public TbAccident() {
    }


}
